docs: css-overview: Don’t recommend broken syntax
authorDaniel Boles <dboles@src.gnome.org>
Sun, 3 Sep 2017 11:07:35 +0000 (12:07 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Sun, 3 Sep 2017 11:26:07 +0000 (12:26 +0100)
Using this produced warnings about the Pango syntax of <Family> <size>
being deprecated, and the size being invalid due to no unit specified.
Also, that multi-word font family presumably wouldn’t work as expected.

docs/reference/gtk/css-overview.xml

index 3d8c8a1814fd2a80b4b3e22ed2d2197ad0136cd6..1c3aed5c63ad0b08c1dc6f05ea22a06f3817c9e3 100644 (file)
@@ -123,7 +123,7 @@ scale[.fine-tune]
       <programlisting><![CDATA[
 button, entry {
   color: #ff00ea;
-  font: Comic Sans 12
+  font: 12px "Comic Sans"
 }
 ]]></programlisting>
     </example>
@@ -216,7 +216,7 @@ notebook > entry {
       <title>Theme any widget within a GtkBox</title>
       <programlisting><![CDATA[
 box * {
-  font: Sans 20
+  font: 20px Sans
 }
 ]]></programlisting>
     </example>
@@ -225,7 +225,7 @@ box * {
       <title>Theme a label named title-label</title>
       <programlisting><![CDATA[
 label#title-label {
-  font: Sans 15
+  font: 15px Sans
 }
 ]]></programlisting>
     </example>